package v1

import (
	"gf_blog_admin/internal/model"
	"github.com/gogf/gf/v2/frame/g"
)

type ArticleCateListReq struct {
	g.Meta `path:"/content/category" method:"get" tags:"content" sm:"文章分类列表" noCan:"true"`
	model.ArticleCateListInput
}
type ArticleCateListRes struct {
	Rows []*model.ArticleCateItem `json:"rows"`
}

type ArticleCateStoreReq struct {
	g.Meta `path:"/content/category/store" method:"post" tags:"content" sm:"文章分类添加" can:"content.category.store"`
	model.ArticleCateFormInput
}

type ArticleCateStoreRes struct{}

type ArticleCateUpdateReq struct {
	g.Meta `path:"/content/category/update/{id}" method:"put" tags:"content" sm:"文章分类更新" can:"content.category.update"`
	Id     uint64 `json:"id" in:"query" v:"required|min:1" dc:"文章分类id"`
	model.ArticleCateFormInput
}

type ArticleCateUpdateRes struct{}

type ArticleCateDestroyReq struct {
	g.Meta `path:"/content/category/destroy" method:"delete" tags:"content" sm:"文章分类删除" can:"content.category.destroy"`
	Ids    []uint64 `json:"ids" v:"required|array|max-length:200" dc:"文章分类id集合"`
}

type ArticleCateDestroyRes struct{}
